package org.spring.test;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author liubin
 *
 * @date 2018年3月5日下午3:14:56
 */
@Controller
public class MyController {

    @RequestMapping(value = "/sayHello")
    public String sayHello(HttpServletRequest httpServletRequest) {
        String username = httpServletRequest.getParameter("username");
        String password = httpServletRequest.getParameter("password");
        System.out.println("用户名是:" + username + "密码是:" + password);
        return "index";
    }

}
